package com.fyl.spring.dao.impl;

import com.fyl.spring.dao.UserDao;

/**
 * 数据访问层实现类
 */
public class UserDaoImpl implements UserDao {
    private String userName;
    private String password;

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public UserDaoImpl() {
        System.out.println("UserDaoImpl 创建了");
    }

    @Override
    public void add() {
        System.out.println("userDao ...");
        System.out.println("userName = " + userName);
        System.out.println("password = " + password);

    }
}
